package com.tomorrowbbs;

import com.tomorrowbbs.service.ISysSettingService;
import javafx.application.Application;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class InitRun implements ApplicationRunner
{
    @Autowired
    private ISysSettingService sysSettingService;
    public void run(ApplicationArguments arguments) throws Exception {
        sysSettingService.refreshCache();
    }
}
